package edu.nyu.cs.omnidroid.app.context;

import java.util.HashMap;
import java.util.Map;

import android.util.Log;

final public class GlobalAttributes {
	public static Map<String, Object> globAttributes = new HashMap<String, Object>();

	public static final String ATTRIBUTE_INDOORS = "Env Indoors";
	
	public static void Init() {
		GlobalAttributes.putGlob("Phone on", new Boolean(true));
		GlobalAttributes.putGlob("Env Walking", new Boolean(false));
		GlobalAttributes.putGlob(GlobalAttributes.ATTRIBUTE_INDOORS, new Boolean(true));
		GlobalAttributes.putGlob("Chris", "Meyers");
		Log.i("HASH", "Called global constructor");

	}
	
	
	public static Object getGlob(String key) {
		return globAttributes.get(key);
	}
	
	public static String getGlobString(String key) {
		return globAttributes.get(key).toString();
	}
	
	public static void putGlob(String key, Object value) {
		globAttributes.put(key, value);
	}
	
	public static void updateGlob(String key, Object value) {
		globAttributes.put(key, value);
	}
}